package com.xwb.service.impl;

import com.xwb.dao.MessageDao;
import com.xwb.domain.Message;
import com.xwb.service.MessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class MessageServiceImpl implements MessageService {
    @Autowired
    private MessageDao messageDao;

    @Override
    public boolean saveInvitation(Message message) {
        messageDao.saveInvitation(message);
        return true;
    }

    @Override
    public String sendMessageToReceiver(String receiverId) {
        return messageDao.sendMessageToReceiver(receiverId);
    }
}
